<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:mo="https://gitee.com/aun/Timo">
<body>

    <form action="/pcs/contractTpl/form" class="layui-card layui-form" data-auto="true" method="post" data-table-id="contractTplTable">

        <input type="hidden" name="id" th:if="${vo}" th:value="${vo.id}"/>
        <div class="layui-card-body padding-15">

            <div class="layui-form-item">
                <label class="layui-form-label ">合同编号</label>
                <div class="layui-input-block ">
                    <input type="text" name="sn" required th:value="${vo?.sn}" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label ">合同名称</label>
                <div class="layui-input-block ">
                    <input type="text" name="title" required th:value="${vo?.title}" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label ">合同详细</label>
                <div class="layui-input-block ">
                    <textarea placeholder="请输入合同详细" class="layui-textarea" name="content">[[${vo?.content}]]</textarea>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label ">合同印章</label>
                <div class="layui-input-block ">
                    <input type="hidden"  name="sealImg" th:value="${vo?.sealImg}" >
                    <script>$("[name=sealImg]").uploadOneImageNew();</script>
                    <style>
                        .uploadimage, .uploadfile{
                            width: 78px!important;
                            height: 78px!important;
                        }
                    </style>
                </div>
            </div>



            <div class="text-center layui-form-actions1">
                <button class="layui-btn" type="submit">保存</button>
                <button class="layui-btn layui-btn-danger" data-close data-confirm="确定要取消编辑吗？" type='button'>关闭</button>
            </div>

        </div>
    </form>

    <script>
        require(['ckeditor5'], function () {

            let editor;
            editor = window.createEditor('[name="content"]');
        })
    </script>
</body>
</html>